import request from '@/utils/request'

export function getFloors(params) {
  return request({
    url: '/floor/getFloors',
    method: 'get',
    params
  })
}

export function getFloorsDetail(buildingId) {
  return request({
    url: '/floor/getFloorsDetail',
    method: 'get',
    params: { buildingId }
  })
}

export function addCleanerToFloor(floorId, cleanerId,userId) {
  return request({
    url: '/floor/addCleanerToFloor',
    method: 'post',
    data: { floorId, cleanerId,userId }
  })

}
export function addtextData() {
  return request({
    url: '/floor/gggg',
    method: 'get',
    params: {}
  })
}
export function getuserinfo() {
  return request({
    url: '/floor/getuserinfo',
    method: 'get',
    params: {}
  })
}
export function getorderList(searchText) {
  return request({
    url: '/floor/getorderList',
    method: 'post',
    data: {searchText}
  })
}
export function setroomlist(buildingId,mainArray,userId) {
  return request({
    url: '/floor/setroomlist',
    method: 'post',
    data: {buildingId,mainArray,userId}
  })

  
}
export function moneytemplate() {
  return request({
    url: '/floor/moneytemplate',
    method: 'get',
    params: {}
  })
}
export function getFlooroptions(buildingId) {
  return request({
    url: '/floor/getFlooroptions',
    method: 'get',
    params: {buildingId}
  })
}

export function getFloorrooms(floorId) {
  return request({
    url: '/floor/getFloorrooms',
    method: 'get',
    params: {floorId}
  })
}
export function getFloorasset(room_id) {
  return request({
    url: '/floor/getFloorasset',
    method: 'get',
    params: {room_id}
  })
}
export function updaraasset(asset) {
  return request({
    url: '/floor/updaraasset',
    method: 'post',
    data: {asset}
  })
}

export function downloadpdf() {
  return request({
    url: '/floor/downloadpdf',
    method: 'get',
    params: {}
  })
}
export function upRent(data) {
  return request({
    url: '/floor/upRent',
    method: 'post',
    data: {data}
  })
}

export function RentSearch(searchText) {
  return request({
    url: '/floor/RentSearch',
    method: 'post',
    data: {searchText}
  })
}
export function getreport(data) {
  return request({
    url: '/floor/getreport',
    method: 'post',
    data: {data}
  })
}
